"""Constants for the yolink integration."""

DOMAIN = "yolink"
MANUFACTURER = "YoLink"
ATTR_DEVICE = "devices"
ATTR_DEVICE_TYPE = "type"
ATTR_DEVICE_NAME = "name"
ATTR_DEVICE_STATE = "state"
ATTR_DEVICE_ID = "deviceId"
ATTR_TARGET_DEVICE = "target_device"
ATTR_VOLUME = "volume"
ATTR_TEXT_MESSAGE = "message"
ATTR_REPEAT = "repeat"
ATTR_TONE = "tone"
ATTR_LORA_INFO = "loraInfo"
YOLINK_EVENT = f"{DOMAIN}_event"
YOLINK_OFFLINE_TIME = 32400

DEV_MODEL_WATER_METER_YS5007 = "YS5007"
DEV_MODEL_MULTI_OUTLET_YS6801 = "YS6801"
DEV_MODEL_TH_SENSOR_YS8004_UC = "YS8004-UC"
DEV_MODEL_TH_SENSOR_YS8004_EC = "YS8004-EC"
DEV_MODEL_TH_SENSOR_YS8008_UC = "YS8008-UC"
DEV_MODEL_TH_SENSOR_YS8008_EC = "YS8008-EC"
DEV_MODEL_TH_SENSOR_YS8014_UC = "YS8014-UC"
DEV_MODEL_TH_SENSOR_YS8014_EC = "YS8014-EC"
DEV_MODEL_TH_SENSOR_YS8017_UC = "YS8017-UC"
DEV_MODEL_TH_SENSOR_YS8017_EC = "YS8017-EC"
DEV_MODEL_FLEX_FOB_YS3604_UC = "YS3604-UC"
DEV_MODEL_FLEX_FOB_YS3604_EC = "YS3604-EC"
DEV_MODEL_FLEX_FOB_YS3614_UC = "YS3614-UC"
DEV_MODEL_FLEX_FOB_YS3614_EC = "YS3614-EC"
DEV_MODEL_PLUG_YS6602_UC = "YS6602-UC"
DEV_MODEL_PLUG_YS6602_EC = "YS6602-EC"
DEV_MODEL_PLUG_YS6614_UC = "YS6614-UC"
DEV_MODEL_PLUG_YS6614_EC = "YS6614-EC"
DEV_MODEL_PLUG_YS6803_UC = "YS6803-UC"
DEV_MODEL_PLUG_YS6803_EC = "YS6803-EC"
DEV_MODEL_SWITCH_YS5708_UC = "YS5708-UC"
DEV_MODEL_SWITCH_YS5708_EC = "YS5708-EC"
DEV_MODEL_SWITCH_YS5709_UC = "YS5709-UC"
DEV_MODEL_SWITCH_YS5709_EC = "YS5709-EC"
DEV_MODEL_LEAK_STOP_YS5009 = "YS5009"
DEV_MODEL_LEAK_STOP_YS5029 = "YS5029"
DEV_MODEL_WATER_METER_YS5018_EC = "YS5018-EC"
DEV_MODEL_WATER_METER_YS5018_UC = "YS5018-UC"

SUPPORTED_REMOTERS = [
    DEV_MODEL_FLEX_FOB_YS3604_EC,
    DEV_MODEL_FLEX_FOB_YS3604_UC,
    DEV_MODEL_FLEX_FOB_YS3614_EC,
    DEV_MODEL_FLEX_FOB_YS3614_UC,
]
